$.getJSON = function (url, data, callback, errorBack) {
    $.ajax({
        url: url,
        type: "get",
        contentType: "application/json",
        dataType: "json",
        timeout: 1000 * 60 * 10,
        data: data,
        success: function (data) {
            callback(data);
        },
        error: function (xhr, textstatus, thrown) {
            errorBack(xhr);
        }
    });
};

$.postJSON = function (url, data, callback, errorBack) {
    $.ajax({
        url: url,
        type: "post",
        contentType: "application/json",
        dataType: "json",
        data: JSON.stringify(data),
        timeout: 60000,
        success: function (msg) {
            callback(msg);
        },
        error: function (xhr, textstatus, thrown) {
            errorBack(xhr);
        }
    });
};